package com.yunhe.day322.dao;

import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface OrderAndTravellerDao {
    @Insert("insert into order_traveller values(#{orderId},#{s})")
    void add(@Param("orderId") String orderId, @Param("s") String s);

    @Delete("delete from order_traveller where orderId=#{orderId}")
    void deleteById(@Param("orderId") String orderId);

    @Update("update order_traveller set travellerId=#{travellerId} where orderid=#{orderId}")
    void update(@Param("orderId") String orderId, @Param("travellerId") String s);
}
